﻿<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<meta name="renderer" content="webkit|ie-comp|ie-stand">
	<link rel="Bookmark" href="imgs/favicon.ico"/>
	<link rel="Shortcut Icon" href="imgs/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/H-ui.admin.css"/>
	<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/skin/default/skin.css" id="skin"/>
	<link rel="stylesheet" type="text/css" href="static/h-ui.admin/css/style.css"/>
	<title>商城</title>
	<style type="text/css">
		input { padding: 5px; border: 1px solid #eee; }
	</style>
</head>
<body>
<!--顶部-->
<header class="navbar-wrapper"></header>
<!--左侧菜单-->
<aside class="Hui-aside">
	<div class="menu_dropdown bk_2" id="leftMenu"></div>
</aside>

<!--首页-->
<section class="Hui-article-box">
	<nav class="breadcrumb">
		<i class="Hui-iconfont">&#xe67f;</i>
		<a href="index.html" class="maincolor">首页</a>
		<span class="c-gray en">&gt;</span> 用户管理
		<span class="c-gray en">&gt;</span> 用户列表
	</nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<div class="cl pd-5 bg-1 bk-gray">
				<span class="l">
					<a href="javascript:;" onclick="user_edit('添加用户','user-edit.html','',0)"
					   class="btn btn-primary radius">
						<i class="Hui-iconfont">&#xe600;</i>
						添加用户
					</a>
					<a href="utx-auth.html" class="btn btn-primary radius">
						提现审核
					</a>
				</span>
				<span class="r">共有数据：<strong id="pageTotal">0</strong> 条</span>
			</div>
			<div class="cl pd-5 bg-1 bk-gray">
				<span class="l">
					<span class="select-box inline">
					<select class="select" id="ulevel">
						<option value="">-选择会员等级-</option>
						<option value="1">分类一</option>
						<option value="2">分类二</option>
					</select>
					</span>
					<input type="text" id="phone" placeholder="搜索手机号"/>
					<input type="text" id="nick" placeholder="搜索昵称"/>
					<input type="text" id="serial" placeholder="搜索编号"/>
					<input type="text" id="id" placeholder="搜索ID"/>
					<a href="javascript:;" class="btn btn-primary radius" onclick="toSearch();">点击搜索</a>
					<!--<a href="javascript:;" onclick="daochu();">点击导出</a>-->
					<!--<span id="down"></span>-->
					<a href="javascript:;" class="btn btn-primary radius" onclick="outExcel();">点击导出</a>
				</span>
			</div>
			<div class="mt-10">
				<table class="table table-border table-bordered table-hover table-bg">
					<thead>
					<tr>
						<th scope="col" colspan="20">用户列表</th>
					</tr>
					<tr class="text-c">
						<th>ID</th>
						<th width="70">编号</th>
						<th>手机号</th>
						<th width="70">微信昵称</th>
						<th>微信头像</th>
						<th width="50">钱包余额</th>
						<th>当前等级</th>
						<th width="50">浏览统计</th>
						<th>收货地址</th>
						<th width="50">优惠劵数量</th>
						<th width="50">充值统计</th>
						<th width="70">最近时间</th>
						<th>操作</th>
					</tr>
					</thead>
					<tbody>
					<tr class="text-c">
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
						<td>-</td>
					</tr>
					</tbody>
				</table>
				<div id="pageHtml"></div>
			</div>
		</article>
	</div>
</section>

<!--自定义弹窗-->
<span id="msgPop"></span>
</body>
</html>


<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="static/h-ui/js/H-ui.js"></script>
<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.page.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript" src="js/uindex.js"></script>
<script type="text/javascript">
	var pages = {
		start: 1, limit: pageSize, total: 0,
		url: '/admin/uindex.html',
		excel: 'user'
	};
	pages.start = getParamByUrl('start');
	pages.start = pages.start ? pages.start : 1;
	var phone = getParamByUrl('phone');
	var nick = getParamByUrl('nick');
	var ulevel = getParamByUrl('ulevel');
	var serial = getParamByUrl('serial');
	var id = getParamByUrl('id');
	(function () {
		$('#phone')[0].value = phone;
		$('#nick')[0].value = nick;
		$('#serial')[0].value = serial;
		$('#id')[0].value = id;
		getOption(ulevel);
		getList();
	})();
	function toSearch(){
		var url = pages.url;
		url += '?start=' + pages.start;
		url += '&phone=' + $('#phone').val();
		url += '&nick=' + $('#nick').val();
		url += '&ulevel=' + $('#ulevel').val();
		url += '&serial=' + $('#serial').val();
		url += '&id=' + $('#id').val();
		window.location.href = url;
	}
	//	function listByKey(){
	//		var phone = $('#phone').val();
	//		var nick = $('#nick').val();
	//		getList({phone: phone, nick: nick});
	//	}
</script>